package emergency;

import java.util.ArrayList;

import unit.Unit;

/**
 * Abstract class for the emergency policy
 *
 */
public abstract class EmergencyPolicy {
	
	/**
	 * Abstract method for sorting units, depending on which concrete emergency policy is used
	 * 
	 * @param units, all the units 
	 * 
	 * @param e, the emergency you want to base the sorting on ( the location is important )
	 * 
	 * @return Returns the list with sorted units 
	 */
	public abstract ArrayList<Unit> sortUnits(ArrayList<Unit> units, Emergency e);
	
	/**
	 * Method for getting a string representation of the concrete emergency policy
	 * 
	 * @return Returns a string representation of the concrete emergency policy
	 */
	public abstract String toString();
}
